How to perform signature verification of messages on-chain and for non-deployed wallet contracts to ensure the integrity of data on a blockchain from signers
TypedData
type, where we will be verifying a message structure with name
, wallet
, and message
parameters:
In this example VERIFYING_CONTRACT_ADDRESS
is the smart contract we deployed on sepolia
but we will show you in the next step what this contract does so you can deploy yourself any any network:
Universal Signature Validator
Custom Contract Verifier
Verify Signature
signer
address, the digest
and signature
. If an EIP6492 signature has been supplied we use the universal signature validator, otherwise we check the EIP1271 signature validation directly:ethers
with the passed in PROJECT_ACCESS_KEY
in the following steps:
Create a Provider
Initialize an Ethers Contract
Static Call the Verify Signature Function